package com.songcha.library_business.ui.activity

import android.content.res.Configuration
import android.content.res.Resources
import androidx.databinding.ViewDataBinding
import com.songcha.library_base.mvvm.base.BaseMvvmActivity
import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_base.mvvm.base.BaseViewModel
import me.jessyan.autosize.AutoSizeCompat

abstract class BaseFontScaleMvvmActivity<VM: BaseViewModel<out BaseRepository>,DB: ViewDataBinding>:BaseMvvmActivity<VM,DB>(){
   /* override fun getResources(): Resources {
        val res = super.getResources()
        val newConfig = Configuration()
        newConfig.setToDefaults() //set to default
        newConfig.fontScale = GlobalFontScaleHolder.getFontScale()
        //this code will make autosize invalid
        res.updateConfiguration(newConfig, res.displayMetrics)
        AutoSizeCompat.autoConvertDensityOfGlobal(res)
        return res
    }*/
}